﻿using Ln.Fram.Core.Data;
using Ln.Rbac.Domain.Shared.Enums;
using SqlSugar;
using Volo.Abp.Auditing;
using Volo.Abp.Domain.Entities;

namespace Ln.Rbac.Domain.Entities;

[SugarTable("Notice")]
public class NoticeAggregateRoot : AggregateRoot<Guid>, ISoftDelete, IAuditedObject, IOrderNum, IState
{
	[SugarColumn(IsPrimaryKey = true)]
	public override Guid Id { get; protected set; }

	/// <summary>
	/// 公告标题
	/// </summary>
	public string Title { get; set; }

	/// <summary>
	/// 类型
	/// </summary>
	public NoticeTypeEnum Type { get; set; }

	/// <summary>
	/// 内容
	/// </summary>
	[SugarColumn(ColumnDataType = StaticConfig.CodeFirst_BigString)]
	public string Content { get; set; }

	public bool IsDeleted { get; set; }

	public DateTime CreationTime { get; set; }

	public Guid? CreatorId { get; set; }

	public Guid? LastModifierId { get; set; }

	public DateTime? LastModificationTime { get; set; }

	public int OrderNum { get; set; }

	public bool State { get; set; }
}
